import { createSlice } from "@reduxjs/toolkit";

const userSlice = createSlice({
    name:'user',
    initialState:{
        userId:""
    },
    reducers:{
        saveUserId(state,{payload}){
            // console.log(payload);
            state.userId = payload
        }
    }
})

export const { saveUserId } = userSlice.actions
export default userSlice.reducer